<html>
<head><title>Second (scopes)</title></head>
<body>
<jsp:useBean id="applicationVariable"
             scope="application" class="java.lang.StringBuffer" />
<jsp:useBean id="sessionVariable"
             scope="session" class="java.lang.StringBuffer" />
<jsp:useBean id="requestVariable"
             scope="request" class="java.lang.StringBuffer" />
<jsp:useBean id="pageVariable"
             scope="page" class="java.lang.StringBuffer" />
<%
    applicationVariable.append("2");
    sessionVariable.append("4");
    requestVariable.append("6");
    pageVariable.append("8");
%>
applicationVariable: <%= applicationVariable.toString()%><br/>
sessionVariable: <%= sessionVariable.toString() %><br/>
requestVariable: <%= requestVariable.toString() %><br/>
pageVariable: <%= pageVariable.toString() %><br/>

Server Version: <%= application.getServerInfo() %><br/>
Servlet Version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br/>
JSP Version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %> <br>
</body>
</html>